// 实现一个函数ex3,使用safeProp和fp.first找到user的名字的首字母
// app.js
const fp = require('lodash/fp')
const { Maybe, Container } = require('./support')
let safeProp = fp.curry(function (x, o) {
    return Maybe.of(o[x])
})
let user = { id: 2, name: 'Alet' }
let ex3 = () => {
    // 你需要实现的函数
    safeProp('name', user).map(function (name) {
        let first = fp.first(name)
        console.log(first)
    })
}
ex3()
